import request from '@/utils/request'
const apiUrl = '/api/attendance-summary'
export function saveAttendanceSummary(data) {
    return request({
        url: `${apiUrl}/save`,
        method: 'post',
        data
    })
}

export function batchSaveAttendanceSummary(data) {
    return request({
        url: `${apiUrl}/batch-save`,
        method: 'post',
        data
    })
}

export function getAttendanceSummaryList(params) {
    return request({
        url: `${apiUrl}/list`,
        method: 'get',
        params
    })
}

export function getAttendanceSummaryDetail(id) {
    return request({
        url: `${apiUrl}/${id}`,
        method: 'get'
    })
}

export function deleteAttendanceSummary(id) {
    return request({
        url: `${apiUrl}/${id}`,
        method: 'delete'
    })
} 